<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看竞拍结果</title>
<link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="wrap">
<!-- main begin-->
  <div class="sale">
    <h1 class="lf">拍卖结束的商品</h1>
    <div class="right rulse">当前用户是：<span class="blue strong"><a href="#" title="${sessionScope.loginUser.userName}">${sessionScope.loginUser.userName}</a></span></div>
    <div class="cl"></div>
  </div>
<div class="items">
      <ul class="rows even strong">
        <li>名称</li>
        <li>开始时间</li>
        <li>结束时间</li>
        <li>起拍价</li>
        <li class="list-wd">成交价</li>
        <li class="borderno">买家</li>
      </ul>

  <c:forEach items="${endlist}" var="ac">
      <ul class="rows">
        <li><a href="国书" title="">${ac.auctionName}</a></li>
        <li><fmt:formatDate value="${ac.auctionStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
        <li><fmt:formatDate value="${ac.auctionEndTime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
        <li>${ac.auctionStartPrice}</li>
        <li class="list-wd">${ac.finalPrice}</li>
        <li class="borderno red"><a href="#">${ac.userName}</a></li>
      </ul>
   </c:forEach>
  </div>
  <h1>拍卖中的商品</h1>
  <div class="items records">
      <ul class="rows even strong rowh"> 
        <li>名称</li>
        <li>开始时间</li>
        <li>结束时间</li>
        <li>起拍价</li>
        <li class="borderno record">出价记录</li>
        <div class="cl"></div>
      </ul>

    <c:forEach items="${auctionList}" var="ac">

    <ul class="rows">
        <li><a href="国书" title="">${ac.auctionName}</a></li>
        <li><fmt:formatDate value="${ac.auctionStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
        <li><fmt:formatDate value="${ac.auctionEndTime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
        <li>${ac.auctionStartPrice}</li>
        <li class="borderno blue record">
          <c:forEach items="${ac.recordList}" var="rc">
            <p>${rc.userName} ${rc.auctionPrice}元</p>
          </c:forEach>
        </li>
        <div class="cl"></div>
      </ul>
    </c:forEach>
  </div>
<!-- main end-->
</div>
</body>
</html>
